import time
import os

while True:

    t = str(time.ctime()).split()

    H = format(int(t[3][0] + t[3][1]), 'b')
    M = format(int(t[3][3] + t[3][4]), 'b')
    S = format(int(t[3][6] + t[3][7]), 'b')

    bin_H = ''
    bin_M = ''
    bin_S = ''

    if len(H) < 6:
        for j in range(6-len(H)):
            bin_H += '0'
    bin_H += H

    if len(M) < 6:
        for j in range(6-len(M)):
            bin_M += '0'
    bin_M += M

    if len(S) < 6:
        for j in range(6-len(S)):
            bin_S += '0'
    bin_S += S

    clock = bin_H + '\n' + bin_M + '\n' + bin_S

    print(clock)

    time.sleep(1)
    os.system('clear')
